﻿@model SMECustomerWebsite.Models.ViewModels.ProductHandbook.ProductHandbookViewModel
<div class="row">
    <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="x_panel">
            <div class="x_title">
                <ul class="nav navbar-right panel_toolbox">
                    <li>
                        <a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                    </li>
                </ul>
                <div class="clearfix"></div>
            </div>
            <div class="x_content">
                <div class="row">
                    <div class="col-md-12">
                        @foreach (var item in Model.productCat)
                        {
                             <!-- price element -->
                            <div class="col-md-4 col-sm-6 col-xs-12">
                                <div class="pricing">
                                    <div class="title">
                                        <h1>@item.Category</h1>
                                    </div>
                                    <div class="x_content">
                                        <div class="pricing_features">
                                            <ul class="list-unstyled text-left">    
                                                @foreach (var product in item.Product)
                                                {
                                                    if (product.HasInfo)
                                                    {
                                                        <li><a href="/ProductHandbook/SaleContestInfo?salecontest=@product.ProductId"><i class="fa fa-plus text-success"></i> @product.ProductName</a></li>
                                                    }
                                                    else
                                                    {
                                                        <li><i class="fa fa-plus text-success"></i> @product.ProductName</li>
                                                    }
                                                }
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        }
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>